import { createRouter, createWebHistory } from 'vue-router';
import HomePage from '../views/Home.vue';
import TaskSchedule from '../components/TaskSchedule.vue';
import ManualTrigger from '../components/ManualTrigger.vue';
import MonitorStatus from '../components/MonitorStatus.vue';

const routes = [
  {
    path: '/',
    name: 'HomePage',
    component: HomePage
  },
  {
    path: '/task-schedule',
    name: 'TaskSchedule',
    component: TaskSchedule
  },
  {
    path: '/manual-trigger',
    name: 'ManualTrigger',
    component: ManualTrigger
  },
  {
    path: '/monitor-status',
    name: 'MonitorStatus',
    component: MonitorStatus
  }
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;
